
import Home from '../page/home'
import Detail from '../page/detail'

import My from '../page/home/my'
import Index from  '../page/home/index/index'
import Car from  '../page/home/car'

const routes = [{
  component: Home,
  path: '/home',
  children: [{
    component: Index,
    path: '/home/index'
  },{
    component: Car,
    path: '/home/car'
  }, {
    component: My,
    path: '/home/my'
  }]
}, {
  component: Detail,
  path: '/detail'
}, {
  from: '/',
  to: '/home/index'
}]

export default routes